package com.east.service.impl;

import com.east.mapper.ProductMapper;
import com.east.result.Result;
import com.east.service.ProductService;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.List;

@Service
public class ProductServiceImpl implements ProductService {
    @Resource
    private ProductMapper productMapper;

    @Override
    public Result getNameAndId() {
        List<HashMap<String, String>> list = productMapper.getNameAndId();
        return Result.OK(list);
    }
}
